﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
namespace LCTWebsite.LctHelper
{
    public class lctLoi
    {
        public static string strSql { get; set; }
        public void ghiLoi(string strLoi,string strTenModel,string strPhuongThuc)
        {
            try
            {
               //  string filepath = Server.MapPath("\\some unc path\\TextFile1.txt");
                string path = @"F:\AnreHoang\LCT\lct_web\LCTWebsite\Template\Loi_Thang_3.TXT";
                StreamWriter sw = File.AppendText(path);
                sw.WriteLine("Thoi Gian : " + LctHelp.dinhDangNgayThang(DateTime.Now.Date) + " Ten Loi :  " + strLoi + "  Ten model : " + strTenModel + "  Phuong thuc loi : " + strPhuongThuc);
                sw.Flush();
                sw.Close();
            }
            catch (Exception ex)
            { 
                
            }
        }
    }
}